package com.learn.designPatterns.behavioral.iterator;

/**
 * @classname:
 * @Description:
 * @author: yfpu
 * @Date: 2018-09-18 15:32
 */
public class Client {
    public static void main(String[] args) {
        ConcreteAggregate concreteAggregate = new ConcreteAggregate();
        Iterator<Integer> iterator = concreteAggregate.createIterator();

        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }

    }
}
